home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1050 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
  2. Subject: Flash of inspiration...
  3. Date: Sat, 19 Feb 1994 13:29:56 +0000 (GMT)
  4. Mime-Version: 1.0
  5.  
  6. Concerning the problem of DMA in a future VM capable MiNT:-
  7.  
  8. Whilst I was brushing my teeth this morning I had a flash of inspiration as
  9. to how programs which go straight for the DMA hardware could be tricked into
  10. working in a virtual address space.
  11.  
  12. The system would map the I/O address space into each process's virtual
  13. address space as a page of read-only RAM which would shadow the real I/O
  14. addresses, one copy per process. When a process writes to what it believes
  15. to be I/O hardware it will cause a fault which would be trapped by the
  16. kernel. The kernel would then examine the memory access, determine what it
  17. was supposed to be doing and act accordingly. The kernel would effectly
  18. emulate the hardware until the point at which the process asks for the DMA
  19. to happen, at which point the kernel translates the addresses and does the
  20. DMA for the process. If the memory access involved is contained in more than
  21. one page then these pages could all be brought into main memory and shuffled
  22. so as to be contiguous before the DMA commenced. OK, it wouldn't be very
  23. good for processes which expected to be real-time, but MiNT isn't real-time
  24. anyway. Also, bringing the DMA process under the control of the kernel would
  25. allow it to be scheduled or queued, or even denied. This would be very
  26. important if MiNT eventually takes over SCSI device access from the horrid
  27. ICD and Atari disk drivers.
  28.  
  29. Hmm.. what do you think? (Is it all twaddle? :-))
  30.  
  31. Steve
  32.  
  33. --
  34. ---------------------------------------------------------------------------
  35. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  36. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).  Tel:-
  37. Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  38.